package com.example.demo.设计模式.适配器模式.对象适配器;

/**
 * @description:
 * @projectName:demo
 * @see:设计模式.适配器模式.对象适配器
 * @author:袁成龙
 * @createTime:2020/10/13 9:53
 * @version:1.0
 */
public class TestLei implements TestInterface{

    private TestShiPeiDuiXiang duiXiang;

    private TestImpl testInterface;

    public TestLei(TestShiPeiDuiXiang duiXiang, TestImpl testInterface) {
        this.duiXiang = duiXiang;
        this.testInterface = testInterface;
    }

    @Override
    public void test01() {
        duiXiang.test1();
    }

    @Override
    public void test02() {
        testInterface.test02();
    }
}